package com.kehutong.department.controller;

import com.kehutong.common.util.Token;
import com.kehutong.department.service.ThirdDepartmentService;
import org.coraframework.authz.HasPermission;

import org.coraframework.inject.Inject;

import org.coraframework.json.JSONObject;
import org.coraframework.logger.Logger;
import org.coraframework.logger.LoggerFactory;
import org.coraframework.mvc.MvcAction;
import org.coraframework.mvc.http.ReqMapping;
import org.coraframework.mvc.http.result.Result;


/**
 * 第三方同步组织架构部门
 * @author liulei
 */
@MvcAction
@ReqMapping("/admin/third")
public class ThirdDepartmentController {
    protected static final Logger logger = LoggerFactory.getLogger(ThirdDepartmentController.class);

    @Inject
    private ThirdDepartmentService thirdDepartmentService;
   @HasPermission("department:thirdform:save")
    @ReqMapping("/sysThirdDepartment")
    public Object sysThirdDepartment(Token token,JSONObject jsonObject) throws Exception {
                thirdDepartmentService.Thirddepartment(token,jsonObject);
        return Result.success();
    }
}
